function resizeArt() {
    let box = $('#n-section')
    let imgBoxH = box.find('.news-img').height()
    let articleBox = box.find('.news-article')
    articleBox.height(imgBoxH - 80)
    if ($(document).width() < 550) {
        articleBox.height('auto')
        box.find('.news-img').css("padding","0 20px")
    }
}

$(document).ready(resizeArt)
$(window).resize(resizeArt)